﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Gman.WebApp.Models.ProveedorModel>" %>

<table width="100%" class="GridLista">
    <tr class="HeaderStyle">       
        <th>
            Nro Documento
        </th>
        <th>
            Nombres y Apellidos
        </th>
        <th>
            Cargo
        </th>
        <th>
            Tipo
        </th>
        <th>
            Email
        </th>
        <th>
            Telefono
        </th>
        <th>
            Estado
        </th>
        <th>
            Ir
        </th>
        <th>
            Ir
        </th>
    </tr>

<% %>
<% foreach (var item in Model.Personales)
   { %>
     <tr class="ItemStyle">           
            <td> <%= Html.Encode(item.Personal.NroDocuPers) %></td>
            <td><%= Html.Encode(item.Personal.NomsPers) + " " + Html.Encode(item.Personal.ApePers) %></td>
            <td><%= Html.Encode(item.Personal.CargoPers)%></td>
            <td><%= Html.Encode(item.Personal.TipoPers)%></td>
            <td><%= Html.Encode(item.Personal.EmailPers)%></td>
            <td><%= Html.Encode(item.Personal.NroTelfPers)%></td>
            <td><%= Html.Encode(item.Personal.EstadoPers)%></td>
                        
            <td><a class="ActionLink" href="#" onclick="LoadAddOrEditPersonal('<%= item.ID %>', true)">Editar</a></td>            
            <td><a class="ActionLink" href="#" onclick="DeletePersonal('<%= item.ID %>', true)">Quitar</a></td>
        </tr>
<% } %> 
  
</table>
